package cn.cctvcc.system.api;

import cn.cctvcc.core.constant.ServiceNameConstants;
import cn.cctvcc.core.domain.R;
import cn.cctvcc.system.api.domain.SysEmail;
import cn.cctvcc.system.api.factory.RemoteSysEmailFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: 邮件服务
 * @author: Jiang
 * @create: 2021-09-23 16:03
 */
@FeignClient(contextId = "remoteEmailService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSysEmailFallbackFactory.class)
public interface RemoteSysEmailService {

    /**
     * 新增
     */
    @PostMapping("/add")
    R<?> add(@RequestBody SysEmail sysEmail);

}
